package cn.bocai.pc.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.bocai.pc.dao.BcAdminMapper;
import cn.bocai.pc.model.BcAdmin;
import cn.bocai.pc.service.BcAdminService;
@Service
public class BcAdminServiceImpl implements BcAdminService {
	
	@Autowired
	BcAdminMapper bcAdminMapper;
	
	public final void setBcAdminMapper(BcAdminMapper bcAdminMapper) {
		this.bcAdminMapper = bcAdminMapper;
	}

	@Override
	public int deleteByPrimaryKey(String userId) {
		
		return bcAdminMapper.deleteByPrimaryKey(userId);
	}

	@Override
	public int insert(BcAdmin record) {
		return bcAdminMapper.insert(record);
	}

	@Override
	public int insertSelective(BcAdmin record) {
		return bcAdminMapper.insertSelective(record);
	}

	@Override
	public BcAdmin selectByPrimaryKey(String userId) {
		return bcAdminMapper.selectByPrimaryKey(userId);
	}

	@Override
	public int updateByPrimaryKeySelective(BcAdmin record) {
		return bcAdminMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(BcAdmin record) {
		return bcAdminMapper.updateByPrimaryKey(record);
	}
	

}
